package org.example.clouddemo.bean.common.param;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@ApiModel("创建订单参数")
@Data
public class CreateOrderParam {

    @NotNull(message = "产品ID不能为空")
    private Long productId;

    @NotNull(message = "购买数量不能为空")
    private Integer quantity;



}
